Developer --> Technical Publications
PATHJava Developer Documentation > Mac OS Runtime for Java > JManager > Programming With JManager


Applet Security Indicators

When you set up an applet security data structure, you must use the JMNetworkSecurityOptions type to specify the security level for the applet when accessing a network.

enum JMNetworkSecurityOptions {
    eNoNetworkAccess = 0,
    eAppletHostAccess,
    eUnrestrictedAccess
    };

Constant descriptions

eNoNetworkAccess
The applet cannot access any networks.
eAppletHostAccess
The applet may access only its host server.
eUnrestrictedAccess
The applet has unrestricted access to all networks.
eUnrestrictedAccess

In addition, you must use the JMFileSystemOptions type to specify the security level allowed for applets accessing the local file system.

enum JMFileSystemOptions {
    eNoFSAccess = 0,
    eLocalAppletAccess,
    eAllFSAccess
};

Constant descriptions

eNoFSAccess
Applets have no access to the local file system.
eLocalAppletAccess
Only applets that are stored locally may access the local file system.
eAllFSAccess
All applets have access to the local file system.

See The AWT Context for more information about using these security indicator types.


© 1998 Apple Computer, Inc. — (Last Updated 3 Dec 98)

Previous | Back Up One Level | Next |